from marshmallow import Schema, fields

class PostSchema(Schema):
    id = fields.Int()
    uid = fields.Int()
    discuss_id = fields.Int()
    vote_id = fields.Int()
    title = fields.Str()
    content = fields.Str()
    media = fields.Str()
    read_count = fields.Int()
    type = fields.Int()
    address = fields.Str()
    longitude = fields.Float()
    latitude = fields.Float()
    create_time = fields.DateTime(format='%Y-%m-%d %H:%M:%S')
    status = fields.Int()
    pay = fields.Decimal(as_string=True)
    brief = fields.Str()
